﻿using System;
using System.Collections.Generic;
using System.Web.UI.WebControls;
using System.Data;

public partial class M_News : System.Web.UI.Page
{
    public DataTable nd;
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            if (Request.QueryString["ID"] != null)
            {
                DisplayArticleDetail(Request.QueryString["ID"].ToString());
            }
            l_Time.Text = String.Format(" [{0:MM-dd HH:mm}]", DateTime.Now.ToLocalTime());
            Page.DataBind();
        }
    }

    //初始化页面并填充数据
    protected void DisplayArticleDetail(string sArticalID)
    {
        nd = eSYSU.Business.NewsService.GetComplexNewsByID(Convert.ToInt32(Request["ID"]));
    }
}